home *** CD-ROM | disk | FTP | other *** search
- Path: news.production.compuserve.com!news
- From: Steve Harris <100016.2166@CompuServe.COM>
- Newsgroups: comp.lang.c++,comp.lang.fortran
- Subject: Calling Fortran in C++
- Date: 8 Jan 1996 14:03:33 GMT
- Organization: CompuServe, Inc. (1-800-689-0736)
- Message-ID: <4cr87l$794$1@mhafc.production.compuserve.com>
-
- Hello,
- Can anyone provide me with a 'simple' example, with source code
- and an 'idiots' step guide, on how to call some FORTRAN code from
- MS VISUAL C++. I have read through the topic of mixed language
- programming in the VISUAL C++ manuals and tried writing the
- examples in the text but I can't seem to get them to work. When I
- type the following command to link the object files of a FORTRAN
- and C++ program:
-
- link small test,,,,
-
- I get the following error,
-
- test.obj : fatal error L1101 : invalid object module
- Object file offset : 1 Record type : 4c
-
- Even an example of a few lines of code showing how to define and
- call FORTRAN code from C++ would be greatly appreciated, as would
- the steps required to compile and link the two sets of code. The
- more I look at the examples in the book the darker the world
- appears to become!
- Thanks for your time, it's greatly appreciated.
- Steve Harris
- Thanks for your time, it's greatly appreciated.
- Steve Harris
-